import java.sql.Date;

public class Employee  extends Person  {

	/**
	 * if you are not definng serial version id then jvm generates 64 bit hashed
	 * serailVersionUID that is based on Class Name , method name , variable
	 */

	/**
	 * 
	 */
	private static final long serialVersionUID = -2359068506493523138L;
	/**
	 * 
	 */
	
	public Employee() {
      
		System.out.println("employee constructor called.");
	
	}

	private transient Degree degree=new Degree();
	private int id;
	private String name;
	private transient  int age;
	private double salary;
	private String panNo;
	private Date datofBirth;

	/**
	 * @return the datofBirth
	 */
	public Date getDatofBirth() {
		return datofBirth;
	}

	/**
	 * @param datofBirth
	 *            the datofBirth to set
	 */
	public void setDatofBirth(Date datofBirth) {
		this.datofBirth = datofBirth;
	}

	/**
	 * @return the panNo
	 */
	public String getPanNo() {
		return panNo;
	}

	/**
	 * @param panNo
	 *            the panNo to set
	 */
	public void setPanNo(String panNo) {
		this.panNo = panNo;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the age
	 */
	public int getAge() {
		return age;
	}

	/**
	 * @param age
	 *            the age to set
	 */
	public void setAge(int age) {
		this.age = age;
	}

	/**
	 * @return the salary
	 */
	public double getSalary() {
		return salary;
	}

	/**
	 * @param salary
	 *            the salary to set
	 */
	public void setSalary(double salary) {
		this.salary = salary;
	}

	/**
	 * @return the degree
	 */
	public Degree getDegree() {
		return degree;
	}

	/**
	 * @param degree the degree to set
	 */
	public void setDegree(Degree degree) {
		this.degree = degree;
	}
	
	

}
